QuickTime 3 Reference

Previous | Chapter Top | Chapter Contents | Next

Compressing or Decompressing During Interrupt Time

If a compressor or decompressor component implements the DataCodecBeginInterruptSafe and DataCodecEndInterruptSafe functions, your application or other software can perform compression or decompression operations during interrupt time. You do this as follows:

  1. Before performing the compression or decompression operation, call the DataCodecBeginInterruptSafe function.

In the call, pass the maximum size of a data block to be compressed or decompressed in the maxSrcSize parameter.

  1. If the call fails, do not perform operations that are not safe during interrupt time.
  2. When the compression or decompression operation is complete, call the DataCodecEndInterruptSafe function to release resources used to make the operation safe at interrupt time.

© 1997 Apple Computer, Inc.

Previous | Chapter Top | Chapter Contents | Next